package com.crazy.model.major.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 问卷调查时间
 * </p>
 *
 * @author ${author}
 * @since 2020-12-24
 */
@TableName("T_SURVEY_TIME")
public class TSurveyTime extends Model<TSurveyTime> {

    /**
    * 所有字段名
    */
    public static class Columns {
        /**
        * 
        */
        public static final String id = "ID";
        /**
        * 
        */
        public static final String startTime = "START_TIME";
        /**
        * 
        */
        public static final String endTime = "END_TIME";
    }

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("START_TIME")
    private LocalDateTime startTime;

    @TableField("END_TIME")
    private LocalDateTime endTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TSurveyTime{" +
        "id=" + id +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        "}";
    }
}
